package com.shop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.criteria.CriteriaBuilder;

import java.math.BigDecimal;
import java.util.Date;

/**
 * description: 该文件说明
 *
 * @author zhaoxiaozhao（xiaozhao.zhao@ucarinc.com）
 * @version 1.0
 * @date 2018/10/12 16:33
 **/
@lombok.Data
public class OrderMaster {
    //订单id
    private String orderId;
    //订单总金额
    private BigDecimal orderAmount;
    //订单状态
    private Integer orderStatus;
    //配送状态
    private Integer sendStatus;
    //新建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createtime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date updatetime;

    //----用户信息
    //买家id
    private String buyerId;

    //买家电话号码
    private String buyerPhoneNumber;

    //买家名字
    private String buyerName;

    //买家昵称
    private String buyerNickName;

    //买家地址
    private String buyerAddress;

    //订单查询的起始时间
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private String orderFromTime;

    //订单查询的结束时间
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private String orderToTime;

}
